Skip to content

Instantly share code, notes, and snippets.

@ngfw
ngfw / BaseConverter.php
Last active September 7, 2026 09:34
PHP BaseConverter
<?php
declare(strict_types=1);
class BaseConverter
{
/**
* The character set used for base conversion.
* Includes digits 0-9 and lowercase and uppercase letters A-Z.
* The minimum base is 2 and the maximum base is 62.
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active September 7, 2026 09:34
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@ekojsalim
ekojsalim / README.md
Created September 3, 2026 19:53
StarCraft website teaser: 8 observed partial-capture messages, decoded binary, 30 response samples, and collector (2026-09-03 UTC)

StarCraft website teaser: 8 observed messages

A searchable collection of messages returned by Blizzard's public partial-capture endpoint, including the original binary strings, ASCII decodings, and all 30 sampled response bodies.

Following the discoveries shared by u/RaiausderDose and u/beyond1sgrasp in this r/starcraft discussion. This collection independently retrieves the endpoint data; it does not claim the original discovery.

What was observed

  • 30 requests, 8 distinct messages. Each response contained 1–4 messages. The final 25 requests added no new messages.
  • Collection window: 2026-09-03 19:49:12–19:49:53 UTC (September 4 in UTC+7).
@bmsimons
bmsimons / ALLWINDOWSONTECHBENCH.md
Last active September 7, 2026 09:34
Download all Windows ISOs directly from Microsoft with a trick

Just run the following JavaScript bookmarklet on https://www.microsoft.com/en-us/software-download/windows10 to reveal all Windows versions.

$("select#product-edition").html("<option value selected value='selected'>Select edition</option><option value='2'>Windows 7 Home Basic SP1 </option><option value='4'>Windows 7 Professional SP1 </option><option value='6'>Windows 7 Home Premium SP1 </option><option value='8'>Windows 7 Ultimate SP1 </option><option value='10'>Windows 7 Home Premium N SP1 </option><option value='12'>Windows 7 Professional N SP1 </option><option value='14'>Windows 7 Ultimate N SP1 </option><option value='16'>Windows 7 Professional K SP1 </option><option value='18'>Windows 7 Professional KN SP1 </option><option value='20'>Windows 7 Home Premium K SP1 </option><option value='22'>Windows 7 Home Premium KN SP1 </option><option value='24'>Windows 7 Ultimate KN SP1 </option><option value='26'>Windows 7 Ultimate K SP1 </option><option value='28'>Windows 7 Starter SP1 </option><option value
@pourmand1376
pourmand1376 / Data Science CheatSheet.md
Last active September 7, 2026 09:33
Pandas, Numpy, Python Cheatsheet
@interfect
interfect / castanet.sh
Last active September 7, 2026 09:33
Set up a Chromecast from a Linux PC, without an Android or iOS mobile device and without Google Home
#!/usr/bin/env bash
# castanet.sh: Script to connect a chromecast to a WiFi network.
#
# Allows you to put your Chromecast on WiFi and do Chromecast initial setup
# without using the Google Home app at all, just using a normal Linux computer.
#
# You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi
# network with your PC, and you also need to find out its IP yourself with e.g.
# Wireshark.
1. Nagłówek (Header)
Adrian Wierzchowski
Power Platform & Automation Consultant
(lub: Automation Engineer / Junior Technical Consultant)
2. Podsumowanie (Summary)
Adrian is an IT and automation specialist with over 2 years of commercial experience in designing end-to-end low-code workflows and enterprise integrations. His expertise spans the Microsoft Power Platform ecosystem (Power Automate, Power Apps, Copilot Studio), REST API integrations, and database design (Dataverse, MS SQL), coupled with modern software engineering background in .NET and C#.
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active September 7, 2026 09:30
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.